<template>
	<view class="content" v-if="visitorInfo.out_room_id">
		 <view>
		
		 <view class="cu-form-group">
				<view class="title light">小区</view>
				<view class="picker">
						{{visitorInfo.community.name}}
				</view>
				
			</view>
			
			<view class="cu-form-group">
				<view class="title light">房屋编号/停车位</view>
				<view class="picker">
						{{visitorInfo.out_room_id}}
				</view>
				
			</view>
			
		   <view class="cu-form-group">
				<view class="title light">费项</view>
				<view class="picker">
						{{visitorInfo.cost_type}}
				</view>
				
			</view>
			
			 <view class="cu-form-group">
				<view class="title light">金额</view>
				<view class="picker">
						{{visitorInfo.bill_entry_amount}}
				</view>
				
			</view>
			
			 <view class="cu-form-group">
				<view class="title light">账期</view>
				<view class="picker">
						{{visitorInfo.acct_period}}
				</view>
				
			</view>
			
			
			 <view class="cu-form-group">
				<view class="title light">出账日期</view>
				<view class="picker">
						{{visitorInfo.release_day}}
				</view>
			
			</view>
			
			<view class="cu-form-group" v-if="visitorInfo.trade_no">
				<view class="title light">订单号</view>
				<view class="picker">
						{{visitorInfo.trade_no}}
				</view>
				
			</view>
			
			<view class="cu-form-group">
				<view class="title light">支付时间</view>
				<view class="picker">
						{{visitorInfo.paytime}}
				</view>
				
			</view>
			
			<view class="cu-form-group" style="padding: 28upx; line-height: 40upx;">{{visitorInfo.remark_str}}</view>
			
			
		 </view>
	</view>
</template>

<script>
	import beeApp from '../../beeApp.js'
	
	export default {
		data() {
			return {
				 
				visitorInfo:{
					community:{
						
					}
				},
				user_info:{
					
				},
				id:0,
				loadding:0,
				loadding1:0,
			}
		},
		onLoad(option) {
			this.id = option.id;
		    this.getinfo();
		 
		},
		onPullDownRefresh() {
			this.getinfo();
			uni.stopPullDownRefresh();
		},
		methods: {
			 
			   getinfo:function(){
                    var that = this;
                    beeApp.api("api/community_bills/find",{
                        bill_entry_id:this.id,
                    },function(res){
                         if(res.code!=200){
							beeApp.alert(res.msg);
                            return;
                         }
						  that.visitorInfo = res.data; 
                    });
                },
				
	}
		
}
</script>
